package com.wap.framework.service;

import java.util.List;

import com.wap.framework.dao.ImageDAO;
import com.wap.framework.model.Image;

public class ImageServiceImpl implements ImageService {

	private ImageDAO imageDAO;

	public void setImageDAO(ImageDAO imageDAO) {
		this.imageDAO = imageDAO;
	}
	
	public List<Object> listImages(int pageNum) {
		return imageDAO.listImages(pageNum);
	}
	
	public void deleteImages(Integer[] ids) {
		imageDAO.deleteImages(ids);
	}

	public Image editImage(int imageId) {		
		return imageDAO.editImage(imageId);
	}

	public void updateImage(Image image) {		
		imageDAO.updateImage(image);
	}
}
